//
//  MyCollectionViewCell.m
//  14_Work
//
//  Created by dllo on 16/8/2.
//  Copyright © 2016年 yh. All rights reserved.
//

#import "MyCollectionViewCell.h"

@interface MyCollectionViewCell ()
@property (nonatomic, strong) UILabel *titleLabel;
@property (nonatomic, strong) UILabel *descriptionLabel;
@property (nonatomic, strong) UIImageView *backImageView;

@end

@implementation MyCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        self.backImageView = [[UIImageView alloc] initWithFrame:self.bounds];
        self.backImageView.backgroundColor = [UIColor cyanColor];
        [self.contentView addSubview:self.backImageView];
        self.titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(5, 20, self.bounds.size.width - 10, 30)];
        self.titleLabel.backgroundColor = [UIColor grayColor];
        [self.contentView addSubview:self.titleLabel];
        self.descriptionLabel = [[UILabel alloc] initWithFrame:CGRectMake(5, 60, self.bounds.size.width - 10, 30)];
        self.descriptionLabel.backgroundColor = [UIColor purpleColor];
        [self.contentView addSubview:self.descriptionLabel];
    }
    return self;
}



@end
